package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.ReservationDto;
import com.zzyl.vo.ReservationVo;

import java.util.List;

public interface ReservationService {

    //查询指定用户当天的取消预约次数
    Integer getCancelledReservationCount(Long userId);

    void save(ReservationDto dto);

    List<ReservationVo> countByTime(Long time);

    PageResponse pageList(Integer pageSize, Integer pageNum,Integer status);

    void cancel(Long id);
}
